﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Mobile_New_MyOrder : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string memid = HttpContext.Current.Request.Cookies["uid"].Value.ToString();
            if (!string.IsNullOrEmpty(memid))
            {
                Chain.BLL.MicroWebsiteOrderLog orderBll = new Chain.BLL.MicroWebsiteOrderLog();
                DataTable dt = orderBll.GetList(" MicroOrderMemID=" + memid + " order by MicroOrderCreateTime desc").Tables[0];
                if (dt.Rows.Count > 0)
                {
                    rptOrder.DataSource = dt;
                    rptOrder.DataBind();

                }
                else
                {
                    rptOrder.Visible = false;
                    this.msg.InnerText = "暂无订单信息";

                }
            }
            else
            {
                this.form1.Visible = false;
            }
        }
        catch {
            this.form1.Visible = false;
        }
        }
}